<?php

namespace App\Models;

use Illuminate\Foundation\Auth\User as Authenticatable;

class User extends Authenticatable
{
    protected $table = 'users';
    /**
     * The attributes that are mass assignable.
     *
     * @var array
     */
    protected $fillable = [
        'mobile',
        'password',
        'email',
        'username',
        'nickname',
        'realname',
        'avatar',
        'paypassword	',
        'wxopenid',
        'qqopenid',
        'wbopenid',
        'identitycard',
        'birthday',
        'sex',
        'balance',
        'savemoney',
        'point',
        'city',
        'issalesman',
        'salesmanid	',
        'isdouble',
        'adminid',
        'status',
        'doublecoupons',
        'firstrechargetime',
        'firstordertime',
        'firstshopname',
        'logintime',
        'remember_token',
        'info',
        'registersource',
        'ip',
        'deviceid',
        'osversion',
        'phonetype',
        'versioncode',
        'registerarea',
        'shopid',
        'iosorandroid'
    ];

    /**
     * The attributes excluded from the model's JSON form.
     *
     * @var array
     */
    protected $hidden = [
        'password', 'remember_token',
    ];

    public function getJWTIdentifier()
    {
        return $this->id;
    }

    public function getJWTCustomClaims()
    {
        return [];
    }
}
